import java.math.BigDecimal;
import java.math.RoundingMode;

public class Test10 {
    public static void main(String[] args) {
        BigDecimal bd1=BigDecimal.valueOf(10.0);
        BigDecimal bd2=BigDecimal.valueOf(3.0);
        BigDecimal bd3=bd1.add(bd2);
        System.out.println(bd3);
        BigDecimal bd4=bd1.subtract(bd2);
        System.out.println(bd4);
        BigDecimal bd6=bd1.divide(bd2, RoundingMode.HALF_DOWN);
        System.out.println(bd6);
        System.out.println(bd1.divide(bd2,RoundingMode.CEILING));
        System.out.println(bd1.divide(bd2,RoundingMode.UP));
        System.out.println(bd1.divide(bd2,RoundingMode.DOWN));
        System.out.println(bd1.divide(bd2,RoundingMode.FLOOR));

        
    }
}
